package cn.zlz.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author dell
 * @date 2021-03-09 11:31
 * @description
 */
@FeignClient(name = "EmailApplicaion")
public interface EmailFeignClient {

    @RequestMapping(value = "/api/email/send",method = RequestMethod.GET)
    String sendCode(@RequestParam(value = "email") String email, @RequestParam(value = "code") String code);
}
